<?php

//echo "<script>window.location='index.php?module=naujienos';</script>";
$result=mysql_query("select * from news ORDER BY id DESC"); //meniu isvedimas
$i=0;
while ($row = mysql_fetch_assoc($result)) {
$i++;

}


echo "<form method='post' action='?module=naujienos&detail=2updator=1'>";
echo "Baneriai:<br><br><br>";
echo "<textarea name='newcontent' style='width:100%'>$row[textas]";
echo "</textarea><br>";
echo "<input type='hidden' name='idis' value='$row[id]'>";
echo "<input type=submit style='background-color:red;font-size:10px;color:white;border:0;line-height:normal' name='updator' value='išsaugoti' >&nbsp;&nbsp;&nbsp;&nbsp;";
echo "</form>";




?>